<?php ?>
<div class="bigbox" id="boxslide">
    <div id="slider" class="nivoSlider">
<?php
$rows = Db::getRows('*', 'article order by id Desc limit 0, 8');
if (Lang::getCode() == 'en') {
    foreach ($rows as $value => $row) {
        echo '<a href="entrycontent?id=' . $row['id'] . '"><img src="img/s' . ++$value . '.jpg" title="<h1>' . $row['title2'] . '</h1>
                         ' . $row['intro2'] . '"/></a>';
    }
} else {
    foreach ($rows as $value => $row) {
        echo '<a href="entrycontent?id=' . $row['id'] . '"><img src="img/s' . ++$value . '.jpg" title="<h1>' . $row['title'] . '</h1>
                         ' . $row['intro'] . '"/></a>';
    }
}
?>
    </div>
</div>